﻿using Microsoft.AspNetCore.Components;

namespace BlazorSample
{
    public partial class CustomTabs
    {
        
    }

    public class CustomTabItem<T>
    {
        /// <summary>
        /// The title displayed on the tab header
        /// </summary>
        public string Title { get; set; } = string.Empty;

        /// <summary>
        /// The content of the tab
        /// </summary>
        public RenderFragment Content { get; set; } = _ => { };

        /// <summary>
        /// Determines whether this tab is visible
        /// </summary>
        public bool IsVisible { get; set; } = true;

        public CustomTabItem(string title, RenderFragment content, bool isVisible = true)
        {
            Title = title;
            Content = content;
            IsVisible = isVisible;
        }
    }
}
